<?php
namespace app\common\validate;
use think\Validate;

class UserAddress extends Validate
{

    //定义验证规则
    protected $rule =   [
        'uid' => 'require',
        'contacts|姓名' => 'require',
        'phone|手机号' => 'require|mobile',
        'city|城市' => 'require',
        'district' => 'require',
        'is_default' => 'in:0,1',
    ];

}
